package com.xxx.A_controller;

import com.xxx.B_service.impl.UserServiceImpl;
import com.xxx.D_entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    UserServiceImpl userService;

    @RequestMapping(value = "/selectId", method = RequestMethod.GET)
    public User selectId(String id) {
        System.out.println("ID:" + id);

        User user = userService.selectId(id);

        return user;
    }

}
